package com.bjsxt.livegoods.buyaction.client.controller;

import com.bjsxt.livegoods.buyaction.client.service.BuyactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class BuyactionController {
    @Qualifier("com.bjsxt.livegoods.buyaction.client.service.BuyactionService")
    @Autowired
    private BuyactionService buyactionService;

    @GetMapping
    @CrossOrigin
    public Map<String, Object> buyaction(String id, String user){
        return buyactionService.buyaction(id, user);
    }
}
